from django import template
from django.utils.html import format_html
from xadmin.models import Node
from xadmin.permission import permission_show

register = template.Library()


@register.filter
def show(permission_slug):
    try:
        return permission_show[permission_slug]
    except:
        return ""